<?php
/**
 * Created by PhpStorm.
 * User: xiao
 * Date: 2017/6/26
 * Time: 上午10:14
 */

namespace app\src\seller\helper;


class AddressHelper
{
    public static function getAddressPos($address=''){
        $req = 'http://api.map.baidu.com/geocoder/v2/?address='.urlencode($address).'&output=json&ak='.config('baidu_map_ak');
        return json_decode(file_get_contents($req),true);
    }
}